const express = require('express')
const router = express.Router()

// 导入管理员子路由
const authRoutes = require('./auth')
const adminsRoutes = require('./admins')
const rolesRoutes = require('./roles')
const permissionsRoutes = require('./permissions')
const usersRoutes = require('./users')
const dashboardRoutes = require('./dashboard')
const pointsRoutes = require('./points')
const expirationRoutes = require('./expiration')
const antiCheatRoutes = require('./antiCheat')
const adStatisticsRoutes = require('./adStatistics')
const productsRoutes = require('./products')
const ordersRoutes = require('./orders')

// 注册子路由
router.use('/auth', authRoutes)
router.use('/admins', adminsRoutes)
router.use('/roles', rolesRoutes)
router.use('/permissions', permissionsRoutes)
router.use('/users', usersRoutes)
router.use('/dashboard', dashboardRoutes)
router.use('/points', pointsRoutes)
router.use('/expiration', expirationRoutes)
router.use('/anti-cheat', antiCheatRoutes)
router.use('/ad-statistics', adStatisticsRoutes)
router.use('/products', productsRoutes)
router.use('/orders', ordersRoutes)

module.exports = router